<template>
  <div class="container">
    <van-nav-bar title="文章详情" left-text="返回" left-arrow>
        <template #right>
            <van-icon name="search" size="18" />
        </template>
    </van-nav-bar>
    <div class="banner">
      <img src="../assets/img/13203419.jpg" alt="" />
    </div>
    <div class="author-info">
      <img src="../assets/img/20221013203600.jpg" alt="" />
      <div>
        <p>宠物之家</p>
        <span>宠物美容</span>
        <span>寄养</span>
        <span>宠物医疗</span>
      </div>
      <button>+关注</button>
    </div>
    <div class="pet-info">
      <p>
        宠物零食有讲究，九大魔力你知道吗？宠物零食是有讲究，九大魔力你知道吗？宠物零食是有讲究，九大魔力你知道吗？宠物零食是有讲究，九大魔力你知道吗？
      </p>
      <img src="../assets/img/13203419.jpg" alt="" />
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.container {
  box-sizing: border-box;
  font-size: 14px;
}
ul {
  list-style: none;
}
li {
  list-style-type: none;
}
p {
  margin: 0;
}
.banner {
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.banner > img {
  display: block;
  width: 100%;
}
.author-info {
  border: 2px solid #f1f1f1;
  display: flex;
  padding: 5px 0;
  height: 80px;
  margin-top: 10px;
  border-radius: 8px;
  justify-content: space-evenly;
  align-items: center;
}
.author-info > img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.author-info > div > span {
  display: inline-block;
  font-size: 0.8em;
  background-color: #fce7e4;
  border-radius: 8px;
  padding: 2px 4px;
  margin-right: 6px;
}
.author-info > button {
  border: none;
  border-radius: 15px;
  background-image: linear-gradient(180deg, #ed8b6b, #fe719b);
  color: #fff;
  padding: 6px 8px;
  font-size: 1.05em;
}
.pet-info {
  padding: 10px;
}
.pet-info > p {
  padding: 10px;
  line-height: 1.5em;
}
.pet-info > img {
  display: block;
  width: 100%;
}
</style>
